Conditions | 1 |
Paths | 1 |
Total Lines | 19 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | 'use strict' |
||
7 | export default function (server) { |
||
8 | server.post({ |
||
9 | name: 'password//post', |
||
10 | path: '/password', |
||
11 | validation: { |
||
12 | schema: { |
||
13 | body: Joi.object({ |
||
14 | payload: Joi.object({ |
||
15 | email: Joi.string().email().required() |
||
16 | }).required() |
||
17 | }).required() |
||
18 | } |
||
19 | } |
||
20 | }, |
||
21 | passport.authenticate('jwtEmptyParamUrlQueryStrategy', { |
||
22 | session: false |
||
23 | }), |
||
24 | passwords.create) // recover |
||
25 | } |
||
26 |